CountingSource

class CountingSource(source: Source) : ForwardingSource

Replacement to CountingInputStream - a source which counts the number of bytes read from a wrapped source

Constructors

Link copied to clipboard
constructor(source: Source)

Properties

Link copied to clipboard
@get:JvmName(name = "delegate")
val delegate: Source

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
@JvmName(name = "-deprecated_delegate")
fun delegate(): Source
Link copied to clipboard
Link copied to clipboard
open override fun read(sink: Buffer, byteCount: Long): Long
Link copied to clipboard
open override fun timeout(): Timeout
Link copied to clipboard
open override fun toString(): String